using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class MasterPage : System.Web.UI.MasterPage
{
    public event EventHandler NextClicked;
    public event EventHandler BackClicked;
    public event EventHandler CancelClicked;

    public string ContentTitle
    {
        get
        {
            return this.contentTitle.Text;
        }
        set
        {
            this.contentTitle.Text = value;
        }
    }

    public bool BackEnabled
    {
        get
        {
            return !this.cmdBack.Disabled;
        }
        set
        {
            this.cmdBack.Disabled = !value;
        }
    }

    public bool NextEnabled
    {
        get
        {
            return !this.cmdNext.Disabled;
        }
        set
        {
            this.cmdNext.Disabled = !value;
        }
    }

    public bool CancelEnabled
    {
        get
        {
            return !this.cmdCancel.Disabled;
        }
        set
        {
            this.cmdCancel.Disabled = !value;
        }
    }

    protected void OnNextClicked()
    {
        EventHandler handler = NextClicked;
        if (handler != null)
        {
            handler(this, new EventArgs());
        }
    }

    protected void OnBackClicked()
    {
        EventHandler handler = BackClicked;
        if (handler != null)
        {
            handler(this, new EventArgs());
        }
    }

    protected void OnCancelClicked()
    {
        EventHandler handler = CancelClicked;
        if (handler != null)
        {
            handler(this, new EventArgs());
        }
    }

    protected void BackServerClick(object sender, EventArgs e)
    {
        this.OnBackClicked();
    }

    protected void NextServerClick(object sender, EventArgs e)
    {
        this.OnNextClicked();
    }

    protected void CancelServerClick(object sender, EventArgs e)
    {
        this.OnCancelClicked();
    }
}
